package main

import (
	"demo/context"
	"fmt"
	"time"
)

func main() {
	//context.TestChannel()
	//context.TestTimer()
	//context.TestContext1()

	//context.TestContext2()

	//context.TestCancel()
	//context.TestTimeout()

	data, err := context.Get("http://localhost:8080/aHello", 1100*time.Millisecond)
	if err != nil {
		fmt.Println(err)
	}
	fmt.Println(data)
}
